package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约列表对象 ha_appiontment
 * 
 * @author 鲍小伟
 * @date 2025-11-12
 */
public class HaAppiontment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long aid;

    /** 患者ID */
    @Excel(name = "患者ID")
    private Integer pid;
    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String uname;

    /** 预约科室 */
    @Excel(name = "预约科室")
    private Integer kid;

    /** 预约类型 */
    @Excel(name = "预约类型")
    private String appointmenttype;

    /** 预约检查项目 */
    @Excel(name = "预约检查项目")
    private String appointmentitems;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date appointmenttime;

    /** 预约状态 */
    @Excel(name = "预约状态")
    private String ustatus;

    /** 就诊状态 */
    @Excel(name = "就诊状态")
    private String pstatus;

    public HaPatient patientInfo;  //获取患者的信息@鲍小伟20251124

    public void setAid(Long aid) 
    {
        this.aid = aid;
    }

    public Long getAid() 
    {
        return aid;
    }

    public void setPid(Integer pid)
    {
        this.pid = pid;
    }

    public Integer getPid()
    {
        return pid;
    }

    public void setUname(String uname)
    {
        this.uname  = uname;
    }

    public String getUname()
    {
        return uname;
    }


    public void setKid(Integer kid)
    {
        this.kid = kid;
    }

    public Integer getKid()
    {
        return kid;
    }

    public void setAppointmenttype(String appointmenttype) 
    {
        this.appointmenttype = appointmenttype;
    }

    public String getAppointmenttype() 
    {
        return appointmenttype;
    }

    public void setAppointmentitems(String appointmentitems) 
    {
        this.appointmentitems = appointmentitems;
    }

    public String getAppointmentitems() 
    {
        return appointmentitems;
    }

    public void setAppointmenttime(Date appointmenttime) 
    {
        this.appointmenttime = appointmenttime;
    }

    public Date getAppointmenttime() 
    {
        return appointmenttime;
    }

    public void setUstatus(String ustatus)
    {
        this.ustatus = ustatus;
    }

    public String getUstatus()
    {
        return ustatus;
    }

    public void setPstatus(String pstatus)
    {
        this.pstatus = pstatus;
    }

    public String getPstatus()
    {
        return pstatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("aid", getAid())
            .append("pid", getPid())
            .append("kid", getKid())
            .append("uname", getUname())
            .append("appointmenttype", getAppointmenttype())
            .append("appointmentitems", getAppointmentitems())
            .append("appointmenttime", getAppointmenttime())
            .append("ustatus", getUstatus())
            .append("pstatus", getPstatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
